import Mock from 'mockjs'
// import { getResult } from './utils.js'
import './mock_dcf'

Mock.mock('/application/detail', 'get', () => {
  const data = {
    id: '123',
    title: '未命名应用',
    worksheetGroup: [
      {
        id: 'group1',
        name: '分组1',
        worksheets: [
          {
            id: '61c530fedff41dac9a1b1534',
            name: '表1',
            views: [
              {
                id: 'view1',
                name: '视图1',
                viewType: 'worksheet'
              }
            ]
          },
          {
            id: '61c530fedff41dac9a1b146e',
            name: '表2',
            views: [
              {
                id: 'view2',
                name: '视图2',
                viewType: 'worksheet'
              }
            ]
          },
          {
            id: '61a6e2e6de35fff2240653e2',
            name: '表3',
            views: [
              {
                id: 'view3',
                name: '视图3',
                viewType: 'worksheet'
              }
            ]
          }
        ]
      },
      {
        id: 'group2',
        name: '分组2',
        worksheets: [
          {
            id: '61922bf62407ec4700278318',
            name: '表4',
            views: [
              {
                id: 'view4',
                name: '视图4',
                viewType: 'worksheet'
              }
            ]
          },
          {
            id: '6178ab3520d26e6b15a1e495',
            name: '表5',
            views: [
              {
                id: 'view5',
                name: '视图5',
                viewType: 'worksheet'
              }
            ]
          }
        ]
      }
    ]
  }
  return data
})
